/**
 * 
 */
package com.nexttwist;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.widget.Toast;

import com.nexttwist.adapters.SectionsPagerAdapter;
import com.nexttwist.auth.AuthenticationHandler;

/**
 * @author HarishKumarG
 *
 */
public class HomeActivity extends FragmentActivity {
	
	private ViewPager mViewPager;
	private SectionsPagerAdapter mSectionsPagerAdapter;
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.activity_home);
		mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
		mViewPager = (ViewPager) findViewById(R.id.pager);
		mViewPager.setAdapter(mSectionsPagerAdapter);
		//Toast.makeText(getApplicationContext(), "From Home" + AuthenticationHandler.getInstance().getmGraphUser().getName(), Toast.LENGTH_LONG).show();
	}
}
